<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JavaScript 斐波那契数列</title>
</head>
<body>


<script>

    function wn(i){

        if(i == 1 || i == 2){
            return 1
        }else {
            return wn(i-1) + wn(i-2)
        }

    }
    console.log(wn(25));
</script>

</body>
</html>